package com.yourcompany.api.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yourcompany.common.utils.CustomLongSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "角色VO")
public class RoleVO {

    @JsonSerialize(using = CustomLongSerializer.class)
    @Schema(description = "角色ID")
    private Long id;

    @Schema(description = "角色名称")
    private String name;

    @Schema(description = "角色标识")
    private String code;

    @Schema(description = "角色描述")
    private String description;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status;

    @Schema(description = "是否系统角色：0-否 1-是")
    private Boolean isSystem;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
} 